import {pillowRequest} from '@/base/PillowRequest';
import {Result} from '@/base/Result';
import {Page} from '@/base/Page';
import {AsleepVo} from '@/base/model/AsleepVo';


export function getAsleep(params: {
  pageIndex: number,
  pageSize: number,
  sortDirection: string,
  createBegin?: string,
  createEnd?: string,
  memberId?: number,
}): Promise<Result<Page<AsleepVo>>> {
  return pillowRequest.getPage(AsleepVo, '/api/asleep', {params});
}




